package both;

import java.util.*;
import javax.xml.bind.annotation.*;

@XmlRootElement
public class Question {
    private String questionText;
    private ArrayList<String> answerChoices;
    private int correctAnswer;
    private String explanation;
    private double pointValue;
    private int time;
    
    public String getQuestionText() {
        return questionText;
    }
    
    @XmlElement
    public void setQuestionText(String questionText) {
        this.questionText = questionText;
    }
    
    public ArrayList<String> getAnswerChoices() {
        return answerChoices;
    }

    @XmlElementWrapper(name = "answerChoices")
    @XmlElement(name="answer")
    public void setAnswerChoices(ArrayList<String> answerChoices) {
        this.answerChoices = answerChoices;
    }
    
    public int getCorrectAnswer() {
        return correctAnswer;
    }

    @XmlElement
    public void setCorrectAnswer(int correctAnswer) {
        this.correctAnswer = correctAnswer;
    }
    
    public String getExplanation() {
        return explanation;
    }
    
    @XmlElement
    public void setExplanation(String explanation) {
        this.explanation = explanation;
    }

    public double getPointValue() {
        return pointValue;
    }

    @XmlElement
    public void setPointValue(double pointValue) {
        this.pointValue = pointValue;
    }

    public int getTime() {
        return time;
    }

    @XmlElement
    public void setTime(int time) {
        this.time = time;
    }
}


